from dynamic_model import init_dynamic_model
from base_model import init_base_model
from base_funcs import *


def compute(seq_id: int, params: dict) -> dict:
    res_base_model = init_base_model(**params)
    res_dynamic_model = init_dynamic_model(**params)
    return {
            "seq_id": seq_id,
            "base_model": res_base_model,
            "dynamic_model": res_dynamic_model,
            "relative_error": relative_error(res_base_model, res_dynamic_model),
            # "real_relative_error": relative_error(res_base_model, res_dynamic_model, compare=False),
            "params": params
            }
